package com.leanyuan.main.controller;


import com.leanyuan.main.dao.BuildingMapper_M;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 相亲相爱一家人
 * @since 2021-05-25
 */
@CrossOrigin //支持跨域
@RestController
@RequestMapping("/leanyuan/building")
public class BuildingController {
        @Autowired
        private BuildingMapper_M buildingMapperM;

        //查询楼栋和房屋信息用于添加报修位置
        @RequestMapping("addHousemsg")
        public List addHousemsg(){
            return buildingMapperM.findBuild();
        }
}

